"Awesome hover effect on image"
Bootstrap 4.1.1 Snippet by Naveen Mandwariya

<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="hover-effect-nav"> <img src="https://picsum.photos/300/200?random" alt="images"> </div>
div{ display:flex; max-height: 500px; max-width: 600px; position:relative; } .hover-effect-nav img{ width:100%; } .hover-effect-nav::before { right: 0; opacity:0.7; top: 0; } .hover-effect-nav::after { bottom: 0; opacity: 0.7; left: 0; } .hover-effect-nav::before, .hover-effect-nav::after { content: ""; background: #fff; height: 0; width: 0; z-index: 1; position: absolute; -webkit-transition-duration: 1.3s !important; -o-transition-duration: 1.3s; transition-duration: 1.3s !important; } .hover-effect-nav:hover::after, .hover-effect:hover::before { height: 100%; opacity: 0; width: 100%; }

Related: See More


Questions / Comments: